﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using TCEasyPrintRev.Models;

namespace TCEasyPrintRev.WCF_File
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFileServis" in both code and config file together.
    [ServiceContract]
    public interface IFileServis
    {
        [OperationContract]
        String addFiles(FileS file);
        [OperationContract]
        String addCetak(CetakS file , string ID ,string id2);
        [OperationContract]
        void addPaket(PaketS file);

    }

    [DataContract]
    public class FileS
    {
        [DataMember]
        public   String ID { get; set; }
        [DataMember]
        public   string Tanggal { get; set; }
        [DataMember]
        public   string path { get; set; }
        [DataMember]
        public   Double size { get; set; }
        [DataMember]
        public   String jenis { get; set; }
    }

    [DataContract]
    public class CetakS
    {
        [DataMember]
        public   String ID { set; get; }
        [DataMember]
        public   PaketS paket { set; get; }
        [DataMember]
        public   FileS file { set; get; }
        [DataMember]
        public   Boolean isvalid { set; get; }
              [DataMember]
        public   int copy { set; get; }
              [DataMember]
        public   Boolean isDone { set; get; }

              [DataMember]
              public double panjang{ set; get; }

              [DataMember]
              public double lebar { set; get; }

    }

    [DataContract]
    public class PaketS
    {
        [DataMember]
        public   String ID { set; get; }
         [DataMember]
        public   Warna warna { get; set; }
         [DataMember]
        public   Produk produk { get; set; }
         [DataMember]
        public   Bahan bahan { get; set; }
         [DataMember]
        public   Double panjang { get; set; }
         [DataMember]
        public   Double lebar { get; set; }
         [DataMember]
        public   String nama { get; set; }
        

    }


}
